Skip to content

Add validation to ensure Cookie.Expiration is not set #8967

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 6 commits into from
Apr 2, 2019
Merged

Conversation

HaoK
Copy link
Member

@HaoK HaoK commented Apr 1, 2019

Fixes #4671

@HaoK HaoK added the area-auth Includes: Authn, Authz, OAuth, OIDC, Bearer label Apr 1, 2019
@HaoK HaoK marked this pull request as ready for review April 1, 2019 21:10
Copy link
Member

@Tratcher Tratcher left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This fails on the first request, right?

@HaoK
Copy link
Member Author

HaoK commented Apr 1, 2019

Sorta, it will fail the first time cookie authentication is accessed. We don't have eager options validation, it will be the first time cookie options is requested

@HaoK
Copy link
Member Author

HaoK commented Apr 1, 2019

So for the default application cookie it will get hit immediately, if they set it on some random cookie they don't always use, the error won't surface for a while

@HaoK HaoK merged commit 42b3fad into master Apr 2, 2019
@natemcmaster natemcmaster deleted the haok-cookies branch May 3, 2019 06:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area-auth Includes: Authn, Authz, OAuth, OIDC, Bearer
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants